﻿using Zws.MongoDb;

namespace App.Chat.Models.MongoModels
{
    /// <summary>
    /// 记录用户的当前连接，用户通过connectId创建会话
    /// </summary>
    public class OnlineUserConnect : MongoObj
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// Signalr连接id
        /// </summary>
        public string ConnectId { get; set; }
        /// <summary>
        /// 当前页面正在会话的id，可能是用户id，也可能是群组id
        /// </summary>
        public string? SessionId { get; set; }
    }
}
